#ifndef COORDINATOR_H
#define COORDINATOR_H

#include <QObject>
#include "proxy/proxyfactory.h"
#include "links/linkfactory.h"
#include <QTimer>

class Coordinator : public QObject
{
    Q_OBJECT
    ProxyFactory p;
    LinkFactory f;
    QTimer coordTimer;
public:
    explicit Coordinator(QObject *parent = 0);
    LinkFactory* getLinkFactory(){return &f;}
    ProxyFactory* getProxyFactory(){return &p;}
signals:

public slots:
    void trigger();
    void waitHandler(int sec,Link*);
    void finnishedHandler(Link*);
    void errorHandler(int errCode, Link*);
};

#endif // COORDINATOR_H
